package com.hong.concurrent.chapter9;

/**
 * @Author csh
 * @Description
 * @Date 2018/7/5 22:24
 */
public class SuspensionClient {

    public static void main(String[] args) throws InterruptedException {
        final  RequestQueue queue =new RequestQueue();
        new ClientThread(queue,"Alex").start();
        ServerThread serverThread = new ServerThread(queue);
        serverThread.start();
        Thread.sleep(10000);
        serverThread.close();
    }
}
